package crm.modefy2;
/**
 *存放初始化数据，该类可以被因为返回的东西为固定的，将唯一的功能函数initialData()；设置为static方便静态工厂式调用
 *再笨累的函数initialData()；中存放了按工程要求的10条数据
 * @author ZHUAN4
 *
 * @param <T>
 */
public class InitialDataModefied<T extends CustomerM> {

	public static CustomerM[] initialData(){
		int[] ids={0,1,2,3,4,5,6,7,8,9};
		String[] names={"Jhon","Harry","Oliver","Catherine","George","Olivia","Kate","Charlotter","Gracie","Harley"};
		String[] sexs={"m","m","w","w","m","w","w","m","m","m"};
		String[] birthdays={"19950701","19950702","19950703","19950704","19950705","19950706","19950707","19950708","19950709","19950710"};
		String[] addresses={"oom201，buildingNo.3,No.12，nanjingroad，BaoShanDistrict " ,
							"Room403,No.37,SiFanResidentialQuarter,BaoShanDistrict " ,
							"No.147#HeiYianStreetthepolicycenterofciviladministrationdepartmentthePeople’RepublicofChina" ,
							"Room201,No.34,Lane125,XiKangRoad(South),HongKouDistrict " ,
							"Room3-101buildingNo.20,TianTan-NanXiLiResidentialChongWenDistrictBeiJingCity " ,
							"Room204buildingNo.102,EastTaiShanResidentialBaoYinCountyJiangSuProvince " ,
							"LiuGang，Room42，ZhongzhouRoad，NanyangCity，HenanProv.China473004" ,
							"1TeamCaiQiChuanXiBeiMiningAreaJiangYouCitySiChuanProvinceChina" ,
							"TheMassesArtCentreXinTaiCityHeBeiProv.China",
							"7GroupLiBeiVillagePingWangTownWeJiangCityJiangSuProvince "	};
		String[] calls={"0270000001","0270000002","0270000003","0270000004","0270000005",
						"0270000006","0270000007","0270000008","0270000009","0270000010"};
		CustomerM[] customerInitialData =  new CustomerM[10] ;
		for(int i=0;i<10;i++)
		{
			CustomerM temp=new CustomerM(ids[i],names[i],sexs[i],birthdays[i],addresses[i],calls[i]);
			customerInitialData[i]= temp;
		}
		return customerInitialData;
		
	}
}
